<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs for page functions.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="file-name">/core/functions.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Описания</div>
	<div class="nav-bar">
					<span class="disabled">Описания</span> |
							<a href="#sec-classes">Слассы</a>
			|													<a href="#sec-functions">Функции</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Общедоступные функции</p>
<p class="description"><p>Файл с набором базовых общедоступных функций по работе с ядром</p></p>
	<ul class="tags">
				<li><span class="field">filesource:</span> <a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html">Source Code for this file</a></li>
				<li><span class="field">author:</span> Anton Zavidov</li>
			</ul>
		
			</div>
</div>
		
	<a name="sec-classes"></a>	
	<div class="info-box">
		<div class="info-box-title">Classes</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Classes</span>
			|																<a href="#sec-functions">Functions</a>
					</div>
		<div class="info-box-body">	
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em; vertical-align: top">
						<a href="../myLiveShop/Base.html">Base</a>
					</td>
					<td>
											Базовый класс всего и вся
										</td>
				</tr>
							</table>
		</div>
	</div>

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-classes">Classes</a>
				|															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functioncheckLogConfig" id="functioncheckLogConfig"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">checkLogConfig</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a196">196</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">проверка на уровень логирования</p>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			checkLogConfig
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: тип лога</span>			</li>
				</ul>
		
	
</div>
<a name="functioncoreExit" id="functioncoreExit"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">coreExit</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a134">134</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">принудительный выход из программы</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			coreExit
		</span>
				()
			</div>

		
	
</div>
<a name="functionec" id="functionec"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">ec</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a163">163</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">ервисная функция для отображения переменных</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			ec
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$submol</span> = <span class="var-default">'*'</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span>			</li>
				</ul>
		
	
</div>
<a name="functionerrorHandler" id="functionerrorHandler"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">errorHandler</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a126">126</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Callback функция для программных ошибок</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			errorHandler
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$errno</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$errstr</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$errfile</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$errline</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$errno</span><span class="var-description">: номер ошибки</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$errstr</span><span class="var-description">: сообщение об ошибке</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$errfile</span><span class="var-description">: файл с ошибкой</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$errline</span><span class="var-description">: номер строки</span>			</li>
				</ul>
		
	
</div>
<a name="functionimport" id="functionimport"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">import</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a28">28</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Подключаем файл</p>
<p class="description"><p>Поключаем файл и определяем его класс по имени файла если файл не найден, или не найден класс в нём кидается исключение  $return_object отвечает за то просто подключать файл или ещё пытаться опрделить класс.  если файл уже был ранее подключен то он возвращается из массива</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> указатель на класс или true/false если $return_object = false</li>
				<li><span class="field">uses:</span> $imported</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Class</span>
		<span class="method-name">
			import
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$path</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$return_object</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$noexit</span> = <span class="var-default">false</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$path</span><span class="var-description">: псевдо путь разделённый '.'</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$return_object</span><span class="var-description">: возвратить класс</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$noexit</span><span class="var-description">: не вылетать если файл не найден</span>			</li>
				</ul>
		
	
</div>
<a name="functionpr" id="functionpr"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">pr</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a152">152</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">сервисная функция для отображения деревьев массивов</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			pr
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$vardump</span> = <span class="var-default">false</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$vardump</span><span class="var-description">: использовать функцию var_dump при выводе, иначе print_r</span>			</li>
				</ul>
		
	
</div>
<a name="functionsearchFile" id="functionsearchFile"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">searchFile</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a183">183</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Ищет файлы по условию</p>
	<ul class="tags">
				<li><span class="field">return:</span> массив найденных элементов</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			searchFile
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$searchString</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$searchString</span><span class="var-description">: условия совпадения</span>			</li>
				</ul>
		
	
</div>
<a name="functionshowImportedFiles" id="functionshowImportedFiles"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">showImportedFiles</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a104">104</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Показывает список импортированных файлов</p>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			showImportedFiles
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'html'</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span><span class="var-description">: тип возвращаемых данных html/json</span>			</li>
				</ul>
		
	
</div>
<a name="functiontoArray" id="functiontoArray"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">toArray</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a171">171</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">превращаем элемент в массив</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			toArray
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">&$value</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span><span class="var-description">: строка или число</span>			</li>
				</ul>
		
	
</div>
<a name="function__autoload" id="function__autoload"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">__autoload</span> (line <span class="line-number"><a href="..//__filesource/fsource_myLiveShop__corefunctions.php.html#a208">208</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Автозагрузка классов</p>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			__autoload
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: имя класса</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Документ создан Mon, 14 Feb 2011 01:08:51 +0200 в <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>